<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
    <div class="t_left"><a href="/index.php?m=user"><i class="back"></i></a></div>
      <div class="t_main">我的消息</div>
    </div>
    <div class="paddingheight"></div>
 	<div class="comblock">
    <div class="uclist">
    	{foreach item=c from=$data}
    <div class="item">
        <div class="hd"><span class="d-status">{if $c.status}已读{else}未读{/if}</span>  {$c.dateline|date:Y-m-d H:i} <span class="fr"><a href="javascript:;" class="delete" url="/index.php?m=notice&a=delete&id={$c.id}">删除</a></span></div>
        <div class="content">{$c.content}</div>
        {if $c.status eq 0}<div class="tools">  <a href="javascript:;" class="do_status" url="/index.php?m=notice&a=status&id={$c.id}">设为已读</a> </div>{/if} 
    </div>
    {/foreach}
    </div>
</div>
 
    
 
</div>
</div>
 
{include file="footer.html"}
<script>
$(function(){
	$(".do_status").bind("click",function(){
		var obj=$(this);
		$.get($(this).attr("url"),function(data){
			obj.parents(".item").find(".d-status").html("已读");
		})
		
	});
});
</script>
</div>
</body>
</html>